package com.alib.springcloud;


import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
// 本服务注册进入 eureka
@EnableEurekaClient
// 开启Hystrix 断路器，不然service层的 @HystrixCommand 不生效
@EnableCircuitBreaker
public class PaymentMain8001Hystrix
{
    public static void main(String[] args)
    {
        SpringApplication.run(PaymentMain8001Hystrix.class,args);
    }


}
